<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head id="MyHead">
	<title>添加用户</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script src="../resources/Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../resources/Scripts/JScriptCommon.js" type="text/javascript"></script>
    <link href="../resources/Content/StyleSheet.css" rel="stylesheet" type="text/css" />
    <script src="../resources/Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../resources/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    <link href="../resources/Content/IndexStyle.css" rel="stylesheet" type="text/css" />
    <script src="../resources/Res/easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../resources/Res/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <link href="../resources/Res/easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../resources/Res/easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />

    
    <script type="text/javascript">
    
    
    var userDepts = [];
    var userPositions = [];
	//异步刷新下拉列表
    /* $.ajax({ 
    	type: "POST", 
    	async: false, 
    	cache: false, 
    	url: "showDepts",
    	success: function (res) {
	        if (res != "") {
	        	userDepts = res;
	        }
    	} 
    }); */
	//异步刷新下拉列表
     /* $.ajax({ 
     	type: "POST", 
     	async: false, 
     	cache: false, 
     	url: "showPositions",
     	success: function (res) {
          if (res != "") {
        	  userPositions = res;
          }
     	} 
     }); */
        
    /*  $(function () {

	      $("#FK_SP_ID").combobox({ data: userDepts, editable: false,panelHeight:"auto", valueField: 'Id', textField: 'Text' });
	      $("#FK_DIC_CASHTYPE").combobox({ data: userPositions, editable: false,panelHeight:"auto", valueField: 'text', textField: 'text' });
	
	      $("#submit").click(function () {
             if ($("#FK_SP_ID").combobox("getValue") == "") {
                 $.messager.alert('系统提示：', '请选择费用名称！', 'warning');
                 return false;
             }

             if ($("#FK_DIC_CASHTYPE").combobox("getValue") == "") {
                 $.messager.alert('系统提示：', '请选择结帐方式！', 'warning');
                 return false;
             }
	      });
     }); */
              
    </script>
</head>
<body>
    
<div class="mbx">
      创建 系统角色
</div>
<form action="/modifyRole" method="post">
    <fieldset>
        <legend>
            <input class="submitcss" type="submit" id="submit" value="修改" />
            <input class="submitcss" type="button" onclick="BackList('../system_manage/SysRole.jsp')" value="返回" />
        </legend>
        <div class="bigdiv">
            <input type="hidden" id="roleId" name="roleId" value="${role.roleId }">
            <div class="editor-label">
               	<label for="roelName">角色名称</label>
        	</div>
	        <div class="editor-field">
	            <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="roleName" name="roleName" type="text" value="${role.roleName }" />
	        </div>     
            
            <div class="editor-label">
               	<label for="roleStatus">角色状态</label>
        	</div>
	        <div class="editor-field">
	            <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="roleStatus" name="roleStatus" type="text" value="${role.roleStatus }" />
	        </div>
	        
	        <div class="editor-label">
                <label for="roleDescription">角色描述</label>
            </div>
            <div class="textarea-box">
                <textarea cols="20" data-val="true" data-val-length="长度不可超过500" data-val-length-max="500" id="roleDescription" name="roleDescription" rows="2">${role.roleDescription }
                </textarea>
                <!-- <span class="field-validation-valid" data-valmsg-for="SCL_REMARK" data-valmsg-replace="true"></span> -->
            </div>
        <div>${message}</div>
    </fieldset>

    </form>
    <c:remove var="message"/>
</body>
</html>